package com.example.BD;

import android.content.Context;
import android.database.DatabaseErrorHandler;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class MaBD extends SQLiteOpenHelper {

	public MaBD(Context context, String name, CursorFactory factory,
			int version) {
		super(context, name, factory, version);
		
	}

	private static final String tContact = "tContact";
	private static final String cNom = "NOM";
	private static final String cPrenom = "PRENOM";
	private static final String cNum = "NUM";
	private static final String reqTC = "create table " + tContact + " ("
			+ cNom + " text primary key , " + cPrenom + " text , " + cNum
			+ " text  );";


	public void onCreate(SQLiteDatabase db) {
		db.execSQL(reqTC);
	}

	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

	}

}
